home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh -e
- CONFFILE=/etc/default/kexec
-
- # Source debconf library.
- . /usr/share/debconf/confmodule
-
- CONFIG_MODE=""
-
- if test -e "$CONFFILE"; then
- . "$CONFFILE"
-
- # Guard against admin writing silly things into the
- # config file...
- if test "$LOAD_KEXEC" != "1" -a "$LOAD_KEXEC" != "true" ; then
- db_set kexec-tools/load_kexec "false"
- else
- db_set kexec-tools/load_kexec "true"
- fi
- fi
-
- # Setup and select the configuration mode
- db_input medium kexec-tools/load_kexec || true
- db_go
-